package com.kucowka.beans;

import org.springframework.context.annotation.Scope;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;

@ManagedResource(objectName = "hotel:name=jmxTester", value = "jmxTester", description = " beans desc")
@Component
@Scope(value = "singleton")
public class JmxBeanImpl implements JmxBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 153454354L;
	private String value = "ualla";

	@ManagedAttribute(description = " returns bean value")
	public String getValue() {
		return this.value;
	}

	@ManagedAttribute(description = "bean value")
	public void setValue(String value) {
		this.value = value;
	}
}
